using System.ComponentModel.DataAnnotations;

namespace Universal.Application.Contracts.Dto.ArticleCategory;

/// <summary>
/// 分配或移除文章
/// </summary>
public record AssignArticlesDto
{
    [Required(ErrorMessage = "分类ID不能为空")]
    public Guid CategoryId { get; set; }

    [Required(ErrorMessage = "文章ID不能为空")]
    public IEnumerable<Guid>? ArticleIds { get; set; }
}
